<{$nav}>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td class="col_left">
			<div class="rblock">
				<div class="hd">
					<i class="icon_y icon_triangle_down"></i>
					<a href="?">按圈子查询</a>
				</div>
				<{section name=i loop=$circles}>
					<div class="item <{if $circles[i].is_current}>current<{/if}>" onclick="location.href='?cid=<{$circles[i].id}>&searchstr=<{urlencode($searchstr)}>'" style="cursor:pointer;" onmouseover="$(this).addClass('hover');" onmouseout="$(this).removeClass('hover');" >
						<{$circles[i].title}> (<{$circles[i].total_articles_by_me}>)
					</div>
				<{/section}>
				<div class="item" style="text-align:right; color:#777;">
					<a style="color:#777;" onclick="UM_LAYER.open('circle/show_add', '', this);">+创建阅读圈</a> | <a style="color:#777;" href="/hot.php">查看热门的阅读圈</a>
				</div>
			</div>
		</td>
		<td id="saved_article_list" class="col_center article_list">
			<div class="hd">
				<div class="more">
					<script language="javascript" type="text/javascript">
						var saved_article_manager = new function () {
							this.show = function () {
								$('#saved_article_list :checkbox').each(function(){
									$(this).css('visibility', 'visible');
								});
								$('#sam_btn').hide();
								$('#sam_bar').show();
							}
							this.hide = function () {
								$('#saved_article_list :checkbox').each(function(){
									$(this).css('visibility', 'hidden');
								});
								$('#sam_btn').show();
								$('#sam_bar').hide();
							}
							this.del = function (ob) {
								var ids	= '';
								$('#saved_article_list :checkbox:checked').each(function(){
									ids += $(this).val() + ',';
								});
								if (ids) {
									UM_LAYER.open('saved/show_del_article', {'ids': ids}, ob);
								} else {
									alert('请选中需要删除的文章！');
								}
							}
						}
					</script>
					<a id="sam_btn" onclick="saved_article_manager.show();">
						文章管理
					</a>
					<div id="sam_bar" style="display:none; position: fixed; top:40px; left:23%; border:1px solid #CCC; padding:5px; margin-top:5px; background-color:#FFE;">
						<span style="color:red;">▼</span>
						<button onclick="saved_article_manager.del(this);" style="color:red; margin: 0 30px 0 10px;">删除选中的文章</button>
						<a onclick="saved_article_manager.hide();">关闭</a>
					</div>
				</div>
				<a class="title">
					我的存档
					<{if $current.title}>
						> <{$current.title}>
					<{/if}>
				</a>
			</div>

			<!-- Save Start ############################################################################################################ -->
			<{if $articles}>
				<{section name=i loop=$articles}>
					<div class="item" onmouseover="$(this).addClass('hover');" onmouseout="$(this).removeClass('hover');">
						<div class="row1">
							<div class="txt">
								<span><{substr($articles[i].dt, 5, 5)}></span>
								<{if $articles[i].circles}>
									<span>存档到：</span>
									<{section name=j loop=$articles[i].circles}>
										<a href="?cid=<{$articles[i].circles[j].id}>"><{$articles[i].circles[j].title}></a>
										<{if $smarty.section.j.last == false}>、<{/if}>
									<{/section}>
								<{else}>
									<span>没有分享到圈子中</span>
								<{/if}>
							</div>
							<div class="link">
								<a href="<{$articles[i].url}>" target="_blank"><{$articles[i].url}></a>
							</div>
						</div>
						<div class="row2">
							<div class="chk">
								<input type="checkbox" value="<{$articles[i].id}>" style="visibility:hidden;">
							</div>
							<a class="title" onclick="open_reader('<{$articles[i].article_id}>', 'save');">
								<{$articles[i].title}>
							</a>
						</div>
						<{if $articles[i].summary}>
							<div class="row3" onclick="open_reader('<{$articles[i].article_id}>', 'save');">
								<{if $articles[i].img_0}>
									<div class="img_clip"><img src="<{$articles[i].img_0}>!s120"></div>
								<{/if}>
								<{$articles[i].summary}>
							</div>
						<{elseif $articles[i].img_0 and $articles[i].img_1}>
							<div class="row3" onclick="open_reader('<{$articles[i].article_id}>', 'save');">
								<div class="img_clip"><img src="<{$articles[i].img_0}>!s120"></div>
								<div class="img_clip"><img src="<{$articles[i].img_1}>!s120"></div>
								<{if $articles[i].img_2}>
									<div class="img_clip"><img src="<{$articles[i].img_2}>!s120"></div>
								<{/if}>
							</div>
						<{else}>
							&nbsp;
						<{/if}>

					</div>	
				<{/section}>
				<div class="page clearfix">
					<div>
						<{if $page == 1 and $is_last == 1}>
							<img src="/images/arrow_page_left_grey.png">
							<img src="/images/arrow_page_right_grey.png">
						<{elseif $page == 1}>
							<img src="/images/arrow_page_left_grey.png">
							<img src="/images/arrow_page_right.png" onclick="location.href='?cid=<{$current.id}>&searchstr=<{urlencode($searchstr)}>&page=<{$page+1}>'">
						<{elseif $is_last == 1}>
							<img src="/images/arrow_page_left.png"  onclick="location.href='?cid=<{$current.id}>&searchstr=<{urlencode($searchstr)}>&page=<{$page-1}>'">
							<img src="/images/arrow_page_right_grey.png">
						<{else}>
							<img src="/images/arrow_page_left.png"  onclick="location.href='?cid=<{$current.id}>&searchstr=<{urlencode($searchstr)}>&page=<{$page-1}>'">
							<img src="/images/arrow_page_right.png" onclick="location.href='?cid=<{$current.id}>&searchstr=<{urlencode($searchstr)}>&page=<{$page+1}>'">
						<{/if}>
					</div>
				</div>
			<{else}>
				<div id="extension_tips_in_list" style="padding: 20px;">
					<script type="text/javascript">
						loadMod('extension/tips_in_list', '', $('#extension_tips_in_list'));
					</script>
				</div>
			<{/if}>
			<!-- Save End ############################################################################################################ -->
		</td>
		<td class="col_right">
			&nbsp;
		</td>
	</tr>
</table>
<{if $edit_id}>
	<script type="text/javascript">
		open_reader('<{$edit_id}>', 'save_on_edit', function(){location.href="/saved.php"} );
	</script>
<{elseif $view_id}>
	<script type="text/javascript">
		open_reader('<{$view_id}>', 'save', function(){location.href="/saved.php"} );
	</script>
<{/if}>